Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Prevent app's bridges from overriding lastMsg prop on rooms col #29756

Merged
merged 9 commits into from
Jul 10, 2023

Conversation

murtaza98
Copy link
Contributor

@murtaza98 murtaza98 commented Jul 7, 2023

Proposed changes (including videos or screenshots)

Issue(s)

Context: We have a prop on Room level where we store a timestamp of the visitor's last message. This prop is later used by other features of omnichannel (like Visitor abandonment feature).
Issue: The app's bridges were overriding this last msg prop due to which the features like Omnichannel Visitor Abandonment were not working. Note: this only happens if the app's bridges were involved, i.e. if we have apps which are modifying room level data (eg WhatsApp app)

Steps to test or reproduce

Further comments

PR to update Apps-engine definition -> RocketChat/Rocket.Chat.Apps-engine#645

@changeset-bot
Copy link

changeset-bot bot commented Jul 7, 2023

🦋 Changeset detected

Latest commit: 6fb897f

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 24 packages
Name Type
@rocket.chat/meteor Patch
@rocket.chat/core-typings Patch
@rocket.chat/rest-typings Patch
@rocket.chat/core-services Patch
@rocket.chat/cron Patch
@rocket.chat/model-typings Patch
@rocket.chat/ui-contexts Patch
@rocket.chat/account-service Patch
@rocket.chat/authorization-service Patch
@rocket.chat/ddp-streamer Patch
@rocket.chat/omnichannel-transcript Patch
@rocket.chat/presence-service Patch
@rocket.chat/queue-worker Patch
@rocket.chat/stream-hub-service Patch
@rocket.chat/api-client Patch
@rocket.chat/omnichannel-services Patch
@rocket.chat/pdf-worker Patch
@rocket.chat/presence Patch
rocketchat-services Patch
@rocket.chat/ddp-client Patch
@rocket.chat/fuselage-ui-kit Patch
@rocket.chat/models Patch
@rocket.chat/uikit-playground Patch
@rocket.chat/instance-status Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@murtaza98 murtaza98 requested a review from a team July 7, 2023 07:04
@murtaza98 murtaza98 added this to the 6.3.0 milestone Jul 7, 2023
@murtaza98 murtaza98 marked this pull request as ready for review July 7, 2023 07:04
@murtaza98 murtaza98 requested a review from a team as a code owner July 7, 2023 07:04
@codecov
Copy link

codecov bot commented Jul 7, 2023

Codecov Report

Merging #29756 (6fb897f) into develop (c8462b7) will decrease coverage by 2.06%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop   #29756      +/-   ##
===========================================
- Coverage    46.62%   44.57%   -2.06%     
===========================================
  Files          695      684      -11     
  Lines        13015    12824     -191     
  Branches      2272     2254      -18     
===========================================
- Hits          6068     5716     -352     
- Misses        6616     6790     +174     
+ Partials       331      318      -13     
Flag Coverage Δ
e2e 44.54% <ø> (-2.06%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

@murtaza98 murtaza98 changed the title fix: Prevent app's bridges to override lastMsg prop fix: Prevent app's bridges from overriding lastMsg prop Jul 7, 2023
@murtaza98 murtaza98 changed the title fix: Prevent app's bridges from overriding lastMsg prop fix: Prevent app's bridges from overriding lastMsg prop on rooms col Jul 7, 2023
KevLehman
KevLehman previously approved these changes Jul 7, 2023
@dionisio-bot dionisio-bot bot added stat: ready to merge PR tested and approved waiting for merge and removed stat: needs QA labels Jul 7, 2023
@d-gubert
Copy link
Member

d-gubert commented Jul 7, 2023

The app's bridges were overriding this last msg prop

Just clarifying that it's not that the bridge was overriding the prop, it simply was not aware of it as it is a newer prop in comparison to when the bridge/converter was written. Ideally, for the future, we should consider how apps will interact with new data being added to models

@murtaza98 murtaza98 requested a review from a team as a code owner July 8, 2023 13:42
@dionisio-bot dionisio-bot bot added stat: ready to merge PR tested and approved waiting for merge and removed stat: ready to merge PR tested and approved waiting for merge labels Jul 8, 2023
@dionisio-bot dionisio-bot bot added stat: ready to merge PR tested and approved waiting for merge and removed stat: ready to merge PR tested and approved waiting for merge labels Jul 10, 2023
@dionisio-bot dionisio-bot bot added stat: ready to merge PR tested and approved waiting for merge and removed stat: ready to merge PR tested and approved waiting for merge labels Jul 10, 2023
@dionisio-bot dionisio-bot bot added stat: ready to merge PR tested and approved waiting for merge and removed stat: ready to merge PR tested and approved waiting for merge labels Jul 10, 2023
@ggazzo ggazzo merged commit 359338a into develop Jul 10, 2023
35 of 36 checks passed
@ggazzo ggazzo deleted the SUP-66_2 branch July 10, 2023 18:36
@KevLehman KevLehman modified the milestones: 6.3.0, 6.2.10 Jul 12, 2023
gabriellsh added a commit that referenced this pull request Jul 12, 2023
…/reportUser

* 'develop' of github.com:RocketChat/Rocket.Chat: (28 commits)
  feat: Add missing variants to UIKit button (#29654)
  refactor: Remove Accountbox usage (#29786)
  chore: stop importing action manager as global (#29766)
  chore: create FeaturePreview Component (#29759)
  regression: add missing translations on MenuV2 replace (#29777)
  test: create mock package (#29765)
  fix: Prevent app's bridges from overriding lastMsg prop on rooms col (#29756)
  regression: option to start video conferences disappearing for regular users (#29763)
  Release 6.2.9
  Revert "Release 6.2.9"
  fix(meteor): `room-opened` event not dispatching when navigating cached rooms (#29718)
  chore:  device management improve readability and performance (#29712)
  chore: throttle exceptions counter increment (#29719)
  chore: Improve performance of getActiveLocalUserCount (#29681)
  Release 6.2.9
  ci: update EE license (#29684)
  ci: Add missing `context` property on compose file (#29676)
  chore: add change stream option to get full doc (#29627)
  fix(meteor): Message composer keeps recording even though permission was denied (#29526)
  fix(meteor): Video Record button disabled on iOS browsers (#29649)
  ...
sampaiodiego pushed a commit that referenced this pull request Jul 13, 2023
sampaiodiego pushed a commit that referenced this pull request Jul 13, 2023
gabriellsh added a commit that referenced this pull request Jul 13, 2023
…reportUser

* 'develop' of github.com:RocketChat/Rocket.Chat: (51 commits)
  feat: Add missing variants to UIKit button (#29654)
  refactor: Remove Accountbox usage (#29786)
  chore: stop importing action manager as global (#29766)
  chore: create FeaturePreview Component (#29759)
  regression: add missing translations on MenuV2 replace (#29777)
  test: create mock package (#29765)
  fix: Prevent app's bridges from overriding lastMsg prop on rooms col (#29756)
  regression: option to start video conferences disappearing for regular users (#29763)
  chore: bump fuselage packages
  docs: Updated README file (#29770)
  regression: Current Chats tags filter not showing department tags (#29758)
  chore: `CloudRoute` to typescript (#29762)
  refactor: Lazy initialization on client-side (#29764)
  fix: Canned Response custom tags break the GUI on enterprise (#29694)
  regression: fix condition to `GenericMenu` gap (#29761)
  test: add unit tests for feature preview hooks (#29755)
  chore: bump fuselage deps (#29739)
  refactor: Changed `getUserPreference` to `useUserPreference` on `useVoipSounds` (#29744)
  fix: mentions and emojis inside bold, italic and strikethrough (#29391)
  chore: `GenericMenu` logic to add gap (#29751)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants